
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@samatech/postcss-colors
Advanced tools
PostCSS plugin that provides various color related transforms
PostCSS plugin that provides various color related transforms.
0
as the lowest and f
as the highest.cc
the alpha value is 204 / 255 = 0.8
.color: #00ff00cc;
color: #0f0c;
/* Converts to */
color: rgba(0, 255, 0, 0.8);
color: rgba(0, 255, 0, 0.8);
rgb
and rgba
functions to valid syntaxcolor: rgba(#0f0, 0.8);
color: rgba(#00ff00, 0.8);
/* Converts to */
color: rgba(0, 255, 0, 0.8);
color: rgba(0, 255, 0, 0.8);
Step 1: Install plugin:
npm install --save-dev @samatech/postcss-colors
Step 2: Check your project for existing PostCSS config: postcss.config.js
in the project root, "postcss"
section in package.json
or postcss
in bundle config.
If you do not use PostCSS, first add it according to PostCSS docs.
Step 3: Add the plugin to plugins list:
import postcssColors from '@samatech/postcss-colors'
export default {
plugins: postcssColors({
// Options
}),
};
This original purpose behind this plugin was to update postcss-hexrgba
to support PostCSS 8. postcss-hexrgba
has since been updated.
The abstractions for converting hex to rgba are similar to those in postcss-color-hex-alpha
, so that functionality is included in this library as well.
Adding a custom alpha syntax for hex colors may be considered, similar to postcss-color-alpha
FAQs
PostCSS plugin that provides various color related transforms
The npm package @samatech/postcss-colors receives a total of 1,707 weekly downloads. As such, @samatech/postcss-colors popularity was classified as popular.
We found that @samatech/postcss-colors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.